import request from '@/utils/request'
// 渲染页面
export const getSerTicketData=(params)=>{
  return request({
    url:'ticket',
    method:'get',
    params
  })
}

// 删除
export const getSerTicketDel=(id)=>{
  return request({
    url:`ticket/${id}`,
    method:'DELETE'
  })
}
// 新增
export const getSerTicketpost=(data)=>{
  return request({
    url:`ticket`,
    method:'post',
    data
  })
}
// 编辑
export const getSerTicketedit=(id)=>{
  return request({
    url:`ticket/${id}`,
    method:'get',
  })
}
// 修改
export const putSerTicketedit=(data)=>{
  return request({
    url:`ticket/${data.id}`,
    method:'put',
    data
  })
}